(function(){
	angular.module('app').controller('attrCtrl', attrCtrl);

	attrCtrl.$inject = ['$scope','$rootScope','$timeout'];

	function attrCtrl($scope,$rootScope,$timeout){
		var vm = this;

		//filter 
        vm.filter = {};

        vm.filterConfig = {
            category: {
                selectText:'',
                default:false
            },
            shopType: {},
            noBtn:{}           
        };
        //test
        
        // $timeout(function(){
        //     $rootScope.$emit('attr_emit_filter_EV',{category:50000697,shopType:''});
        // },1000);
        

        //vm.property->属性
        vm.property = '';

        // $scope.$watch('vm.filter',function(newValue,oldValue){
            
        //     if(angular.equals(newValue, oldValue)){
        //         console.log('vm.filter $watch no change');
        //         return;
        //     }
            
        //     console.log('vm.filter');
        //     $rootScope.$emit('attr_emit_filter_EV',vm.filter);
        // },true);

	}
})();